package com.websocket.event;

public class EventListenerConfig {

    private boolean enable = false;

    private boolean connect = true;
    private boolean disconnect = true;
    private boolean publish = false;
    private boolean receive = false;

    public EventListenerConfig enable() {
        enable = true;
        return this;
    }
    public boolean isEnable() {
        return enable;
    }

    public boolean isConnect() {
        return connect;
    }

    public EventListenerConfig setConnect(boolean connect) {
        this.connect = connect;
        return this;
    }

    public boolean isDisconnect() {
        return disconnect;
    }

    public EventListenerConfig setDisconnect(boolean disconnect) {
        this.disconnect = disconnect;
        return this;
    }

    public boolean isPublish() {
        return publish;
    }

    public EventListenerConfig setPublish(boolean publish) {
        this.publish = publish;
        return this;
    }

    public boolean isReceive() {
        return receive;
    }

    public EventListenerConfig setReceive(boolean receive) {
        this.receive = receive;
        return this;
    }
}
